﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

<head>
<meta http-equiv="Content-Language" content="zh-cn" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ezj.ext.scroll - ezj</title>
<link rel="stylesheet" type="text/css" href="css.css" />
<style type="text/css">
#scroll1{width:450px;background-color:#eee;}
#scroll2{width:450px;height:300px;}
</style>
</head>

<body>

<div class="section">
  <h1>ezj.ext.scroll</h1>
  
  <div class="block">
    <h3>CSS 代码</h3>
    <textarea class="code css">
    #scroll1{width:450px;background-color:#eee;}
    #scroll2{width:450px;height:300px;}
    </textarea>
    
    <h3>HTML 代码</h3>
    <textarea class="code xhtml">
    <div id="scroll1">ezj.ext.scroll 使用起来很方便的，不论上、下、左、右，不论文字、图片，无缝滚动都那么方便。</div>
    <div id="scroll2" class="show">
      <div><img src="images/1.jpg" alt="演示图片一" /></div>
      <div><img src="images/2.jpg" alt="演示图片二" /></div>
      <div><img src="images/3.jpg" alt="演示图片三" /></div>
      <div><img src="images/4.jpg" alt="演示图片四" /></div>
      <div><img src="images/5.jpg" alt="演示图片五" /></div>
    </div>
    </textarea>
    
    <h3>JavaScript 代码（ezj 代码）</h3>
    <textarea class="code javascript">
    ezj.ext.scroll("scroll1", "left");
    ezj.ext.scroll("scroll2", "up", "2000", "fast", 5);
    </textarea>
  </div>
  
  <div class="block">
    <h3>演示</h3>
    <div id="scroll1">ezj.ext.scroll 使用起来很方便的，不论上、下、左、右，不论文字、图片，无缝滚动都那么方便。</div>
    <div id="scroll2" class="show">
      <div><img src="images/1.jpg" alt="演示图片一" /></div>
      <div><img src="images/2.jpg" alt="演示图片二" /></div>
      <div><img src="images/3.jpg" alt="演示图片三" /></div>
      <div><img src="images/4.jpg" alt="演示图片四" /></div>
      <div><img src="images/5.jpg" alt="演示图片五" /></div>
    </div>
  </div>
  
  <div class="block footer">
  版权所有 &copy; 2008 - 2010 <a href="http://www.getezj.com/" target="_blank">www.getezj.com</a>
  </div>
</div>

<script type="text/javascript" src="../ezj.js"></script>
<script type="text/javascript">
<!--
$(window).ready(function(){
    ezj.ext.scroll("scroll1", "left");
    ezj.ext.scroll("scroll2", "up", "2000", "fast", 5);
    
    ezj.ext.codelighter(".code");
});
//-->
</script>

</body>

</html>